package com.hl.qzzpbackend.model.dto.application;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 新增职位申请请求类
 * @author helong
 */
@Data
@ApiModel(value = "新增职位申请请求类")
public class ApplicationAddRequest implements Serializable {


    /**
     * 职位id
     */
    @NotNull(message = "职位id不能为空")
    @Min(value = 1, message = "职位id不能小于1")
    @ApiModelProperty(value = "职位id")
    private Long jobId;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空")
    @Min(value = 1, message = "用户id不能小于1")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /**
     * 简历附件id
     */
    @NotNull(message = "简历附件id不能为空")
    @ApiModelProperty(value = "简历附件id不能为空")
    private Long resumeId;

    /**
     * 申状状态 0-已投递 1-面试中 2-录用 3-拒绝
     */
    @NotNull(message = "申请状态不能为空")
    @ApiModelProperty(value = "申请状态")
    private Integer status;

}